package com.sunwayworld.basemodule.business.pjtask.bean;

import com.sunwayworld.framework.data.annotation.Id;
import com.sunwayworld.framework.data.annotation.NotNull;
import com.sunwayworld.framework.data.annotation.Table;
import com.sunwayworld.framework.data.annotation.Transient;
import com.sunwayworld.framework.support.domain.Insertable;
import com.sunwayworld.framework.support.domain.AbstractInsertable;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 目的表
 * 
 * @author hul@sunwayworld.com
 * @date 2023-07-12
 */
@Table("T_LIMS_PJ_TASK")
public class LimsPjTaskBean extends AbstractInsertable<Long> implements Insertable<Long> {

    @Transient
    private static final long serialVersionUID = -82566196618711043L;

    @Id
    private Long id;// 主键
    private Long folderId;// 任务单ID
    private Long folderEquipId;// 任务单设备ID
    private Long batchId;// 送检单ID
    private Long purposeId;// 检测目的ID
    private String purposeCode;// 检测目的编码
    private String purposeName;// 检测目的名称
    private Long purposeMethodId;// 检测目的方法ID
    private String methodCode;// 方法编码
    private String methodName;// 方法名称
    private String equipCode;// 设备编码
    private String equipName;// 设备名称
    private Long sort;// 排序码
    private String unit;// 单位
    private String resultType;// 结果类型(数字型，字符型)
    private String roundingRule;// 修约
    private String formula;// 公式
    private String originResult;// 原始结果
    private String finalResult;// 最终结果
    private String judge;// 判定结果
    private String color;// 判定结果颜色
    private String resultStatus;// 结果状态(正常/异常/危急)
    private String referTip;// 危急提示
    private String referRange;// 参考值
    private String scope;// 参考范围 报告显示
    @NotNull(defaultValue = "draft")
    private String status;// 状态
    private String createdById;// 制单人编码
    private String createdByName;// 制单人名称
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;// 制单时间
    private String createdByOrgId;// 制单人单位编码
    private String createdByOrgName;// 制单人单位名称

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFolderId() {
        return folderId;
    }

    public void setFolderId(Long folderId) {
        this.folderId = folderId;
    }

    public Long getFolderEquipId() {
        return folderEquipId;
    }

    public void setFolderEquipId(Long folderEquipId) {
        this.folderEquipId = folderEquipId;
    }

    public Long getBatchId() {
        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public Long getPurposeId() {
        return purposeId;
    }

    public void setPurposeId(Long purposeId) {
        this.purposeId = purposeId;
    }

    public String getPurposeCode() {
        return purposeCode;
    }

    public void setPurposeCode(String purposeCode) {
        this.purposeCode = purposeCode;
    }

    public String getPurposeName() {
        return purposeName;
    }

    public void setPurposeName(String purposeName) {
        this.purposeName = purposeName;
    }

    public String getMethodCode() {
        return methodCode;
    }

    public void setMethodCode(String methodCode) {
        this.methodCode = methodCode;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public String getRoundingRule() {
        return roundingRule;
    }

    public void setRoundingRule(String roundingRule) {
        this.roundingRule = roundingRule;
    }

    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

    public String getOriginResult() {
        return originResult;
    }

    public void setOriginResult(String originResult) {
        this.originResult = originResult;
    }

    public String getFinalResult() {
        return finalResult;
    }

    public void setFinalResult(String finalResult) {
        this.finalResult = finalResult;
    }

    public String getJudge() {
        return judge;
    }

    public void setJudge(String judge) {
        this.judge = judge;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(String resultStatus) {
        this.resultStatus = resultStatus;
    }

    public String getReferTip() {
        return referTip;
    }

    public void setReferTip(String referTip) {
        this.referTip = referTip;
    }

    public String getReferRange() {
        return referRange;
    }

    public void setReferRange(String referRange) {
        this.referRange = referRange;
    }

    public String getEquipCode() {
        return equipCode;
    }

    public void setEquipCode(String equipCode) {
        this.equipCode = equipCode;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName() {
        return createdByName;
    }

    public void setCreatedByName(String createdByName) {
        this.createdByName = createdByName;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedByOrgId() {
        return createdByOrgId;
    }

    public void setCreatedByOrgId(String createdByOrgId) {
        this.createdByOrgId = createdByOrgId;
    }

    public String getCreatedByOrgName() {
        return createdByOrgName;
    }

    public void setCreatedByOrgName(String createdByOrgName) {
        this.createdByOrgName = createdByOrgName;
    }

    public Long getPurposeMethodId() {
        return purposeMethodId;
    }

    public void setPurposeMethodId(Long purposeMethodId) {
        this.purposeMethodId = purposeMethodId;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }
}
